<template>
  <div>
    <Card title="">
      <div class="title">
        <HomeOutlined />
        <span>企业信息</span>
      </div>
      <Row class="content-row mar-top-15">
        <Col :span="14">所属企业：{{ data.companyName || '' }}</Col>
        <Col :span="8">纳税人识别号：{{ data?.infoCode }}</Col>
      </Row>
      <Row class="content-row">
        <Col :span="14">官网地址：{{ data?.website }}</Col>
        <Col :span="8">联系电话：{{ data?.infoPhone }}</Col>
      </Row>
      <Row class="content-row">
        <Col :span="14"
          >办公地址：{{ `${data?.province}${data?.city}${data?.area}${data?.address}` }}</Col
        >
      </Row>
    </Card>
    <Card title="" class="mar-top-15">
      <div class="title">
        <HomeOutlined />
        <span>运输能力</span>
      </div>
      <Row class="content-row mar-top-15">
        <Col :span="14">车队规模：{{ data.carrierInfo?.fleetSize }}</Col>
        <Col :span="8">司机人数：{{ data?.driverNum }}</Col>
      </Row>
      <Row class="content-row">
        <Col :span="14">车型类别：{{ data.carrierInfo?.modelCategory }}</Col>
      </Row>
    </Card>
  </div>
</template>
<script lang="ts" setup>
  import { HomeOutlined } from '@ant-design/icons-vue';
  import { Card, Row, Col } from 'ant-design-vue';

  // 获取外部传入的数据
  const { data } = defineProps({
    data: {
      type: Object,
      default: () => {
        return {};
      },
    },
  });
  console.log('data', data);
</script>

<style scoped>
  .title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 30px;
    border-bottom: 1px solid #e5e5e5;
    color: rgb(9 96 189);
    font-size: 18px;
  }

  .title span {
    margin-left: 10px;
  }

  .content-row {
    line-height: 40px;
  }

  .mar-top-15 {
    margin-top: 15px;
  }
</style>
